//
//  XJ_AccountBookListCell.m
//  XunJieProject
//
//  Created by xue on 2018/6/7.
//  Copyright © 2018年 Soowin. All rights reserved.
//

#import "XJ_AccountBookListCell.h"

@implementation XJ_AccountBookListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _bottomView.layer.cornerRadius =4;
    _cardNoRearLabel.textColor =UIColorFromRGB(0x121212);
    _dealTimeLabel.textColor =UIColorFromRGB(0xaaaaaa);
    _dealMoneyLabel.textColor =UIColorFromRGB(0x121212);
    _resultTypeDesLabel.textColor =UIColorFromRGB(0xaaaaaa);
}

-(void)setModel:(XJ_DealListModel *)model{
    
    _model =model;
    
    [_dealTypeLogoImage sd_setImageWithURL:[NSURL URLWithString:model.dealTypeLogo] placeholderImage:[UIImage imageNamed:@"img_no_image"]];
    _cardNoRearLabel.text =[NSString stringWithFormat:@"尾号(%@)",model.cardNoRear];
    _dealTimeLabel.text =model.dealTime;
    _resultTypeDesLabel.text =model.resultTypeDes;
    _dealMoneyLabel.text =[NSString stringWithFormat:@"%@%@",model.dealMoneyType,model.dealMoney];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
